<h1>
  <%= @task.name %>
</h1>

<p>
  <b><%= t :description, :scope => [:activerecord, :attributes, :task]%></b>
  <%= @task.description %>
</p>

<p>
  <b><%= t :status, :scope => [:activerecord, :attributes, :task]%></b>
  <%= t @task.status, :scope => "activerecord.attributes.values.task.statuses" %>
</p>

<p>
  <b><%= t :progress, :scope => [:activerecord, :attributes, :task]%></b>
  <%= @task.progress %> &#037;
</p>

<p>
  <b><%= t :planned, :scope => [:activerecord, :attributes, :task]%></b>
  <span><%= @task.planned.to_s + " " + (t :hour, :scope => [:helpers, :time])%></span>
</p>

<p>
  <b><%= t :performed, :scope => [:activerecord, :attributes, :task]%></b>
  <span><%= @task.performed.to_s + " " + (t :hour, :scope => [:helpers, :time])%></span>
</p>

<br />

<b><%= t :user_id, :scope => [:activerecord, :attributes, :processor]%></b>
<hr />
<% cnt = 1 %>
<% @processors.each do |processor| %>
  <p class="gru-task processorlist item">
    <span class="gru-task processorlist float num"><%= cnt %><% cnt = cnt +1 %> </span>
    <span class="gru-task processorlist float alias"><%= processor.user.alias %></span>
    <span class="gru-task processorlist float email"><%= processor.user.email %></span>
    <span class="gru-task processorlist float status"><b><%= t :status, :scope => [:activerecord, :attributes, :member]%> </b> <%= t( processor.user.members.find_by_project_id(params[:project_id]).status, :scope => [:activerecord,:attributes,:values,:member,:statuses]) %></span>
    <span class="gru-task processorlist float delete"><%= link_to (t :delete, :scope => [:helpers, :navigation]), project_workpackage_task_processor_path(params[:project_id], params[:workpackage_id], @task.id, processor), :confirm => (t :delete_processor, :scope => [:helpers, :messages, :task]), :method => :delete %></span>
  </p>
<% end %>
<% if @processors.size.equal?(0) %>
  <i><%= t :none_processor, :scope => [:helpers, :messages, :task]%> </i>
<% end %>

<br />

<%= link_to (t :back, :scope => [:helpers, :navigation]), project_workpackage_path(params[:project_id], params[:workpackage_id]) %> |
<%= link_to (t :edit, :scope => [:helpers, :navigation]), edit_project_workpackage_task_path(params[:project_id], params[:workpackage_id], @task) %> |
<%= link_to (t :add, :scope => [:helpers, :navigation, :task]), new_project_workpackage_task_processor_path(params[:project_id], params[:workpackage_id], @task) %> |
<%= link_to (t :delete, :scope => [:helpers, :navigation, :task]), project_workpackage_task_path(params[:project_id], params[:workpackage_id], @task), :confirm => (t :delete_task, :scope => [:helpers, :messages, :task]), :method => :delete %>
